import request from '@/request'

// 用户相关接口
export function login(data) {
    return request({
        url: '/api/users/login',
        method: 'post',
        data
    })
}

export function getUserPage(params) {
    return request({
        url: '/api/users/page',
        method: 'get',
        params
    })
}

export function logout() {
    return request({
        url: '/api/users/logout',
        method: 'post'
    })
}
